package one.stand.request.essay;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import one.stand.request.BaseRequest;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author luoyang
 * @date 2020/5/11 18:07
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value="TaskCustomerQuery对象", description="获客文章任务")
public class MyTaskQuery extends BaseRequest implements Serializable {

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "查询任务状态 0进行中 1 未开始 2 已结束 -1全部")
    private Integer state;

    @ApiModelProperty(value = "查看状态 0 未查看 1已查看 -1全部")
    private Integer viewState;

    @ApiModelProperty(value = "查询类型 2 我发布的 1我收到的",required = true)
    @NotNull(message = "查询条件错误")
    private Integer type;
}
